# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Dec 18, 2012
@author: blubin
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;

class DrugScreen(RoleApplication):
    """ The Physician User Interface """

    def __init__(self):
        super(DrugScreen, self).__init__("DrugDiscovery", "Screener");
        self.register_source_step("HTS", self.HTS_form_creator);
        
    def HTS_form_creator(self, stepname, form):
        form.add_html_label('<B>Enter new molecule name:</B>')
        form.add_field(Type.SHORTSTRING, "moleculename", labeltext="Molecule Name");
        form.add_field(Type.BOOLEAN, "isscreenapproved",  labeltext="Is HTS approved?");
    
if __name__ == '__main__':
    app = DrugScreen();
    app.MainLoop();